from Graph import Graph

def main():
	
	graphFile = raw_input("Enter the file name containing a valid graph:")
	filep = open(graphFile)
	graph = Graph(filep)
	print "Evaluating the graph:\n"
	print graph
	T = graph.kruskal()
	print "Min. Spanning tree: \n"
	for edges in T:
		print edges
	return 0

if __name__ == '__main__':
	main()
